<?xml version="1.0" encoding="UTF-8"?>
<!-- 
    Document   : BuscarPJ
    Created on : 03/02/2010, 12:58:33
    Author     : Las
-->
<jsp:root version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:ice="http://www.icesoft.com/icefaces/component" xmlns:jsp="http://java.sun.com/JSP/Page">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <ice:outputHtml id="outputHtml1">
            <ice:outputHead id="outputHead1">
                <ice:outputStyle href="./resources/stylesheet.css" id="outputStyle1"/>
                <ice:outputStyle href="./xmlhttp/css/rime/rime.css" id="outputStyle2"/>
                <ice:outputStyle href="./resources/css/formata_conteudo.css" id="outputStyle3"/>
                <script language="JavaScript" src="./view/js/MascaraCampos.js" type="text/javascript"></script>
            </ice:outputHead>
            <ice:outputBody id="outputBody1" style="-rave-layout: grid">
                <ice:form id="form1">
                    <!-- Painel Principal -->
                    <ice:panelGroup id="painelPrincipal" styleClass="principal">
                        <!-- Painel Cabeçalho -->
                        <ice:panelLayout id="panelLayoutCabecalho" style=" -rave-layout: grid" styleClass="cabecalho">
                            <ice:commandButton action="#{BuscarPJ.panelLayoutLogo_action}" id="panelLayoutLogo" image="/resources/images/logo_soligee.png"
                                styleClass="logo"/>
                        </ice:panelLayout>
                        <!-- Painel Título -->
                        <ice:panelLayout id="painelTitulo" style="-rave-layout: grid" styleClass="titulo bPessoaj">
                            <!-- Painel Voltar -->
                            <ice:panelLayout id="painelVoltar" styleClass="pnVoltar">
                                <ice:commandButton action="#{BuscarPJ.btn_voltar_action}" binding="#{BuscarPJ.btn_voltar}" id="btn_voltar"
                                    image="/resources/images/btn/voltar.png" styleClass="btnVoltar"/>
                            </ice:panelLayout>
                            <!-- Fim Painel Voltar -->
                        </ice:panelLayout>
                        <!-- Fim Painel Título -->
                        <!-- Painel Busca -->
                        <ice:panelLayout id="panelPainelBusca" style="-rave-layout: grid" styleClass="painelBusca">
                            <!-- Tipo Busca  -->
                            <ice:selectOneMenu binding="#{BuscarPJ.tipoBusca}" id="tipoBusca" partialSubmit="true" styleClass="tipoBusca"
                                value="#{BuscarPJ.botaoSelecionadoTipoBusca.selectedObject}" valueChangeListener="#{BuscarPJ.tipoBusca_processValueChange}">
                                <f:selectItems id="selectOneMenu1selectItems" value="#{BuscarPJ.botaoTipoBusca}"/>
                            </ice:selectOneMenu>
                            <!-- CampoABuscar  -->
                            <ice:selectInputText binding="#{BuscarPJ.campoABuscar}" id="campoABuscar" partialSubmit="true" style="z-index:3"
                                styleClass="campoABuscar" valueChangeListener="#{BuscarPJ.campoABuscar_processValueChange}" width="240">
                                <f:selectItems id="selectInputText1selectedItems" value="#{BuscarPJ.item}"/>
                            </ice:selectInputText>
                            <!-- Botao Buscar -->
                            <ice:commandButton action="#{BuscarPJ.btnBuscar_action}" binding="#{BuscarPJ.btnBuscar}" id="btnBuscar" immediate="true"
                                styleClass="btnBuscar" value="Buscar"/>
                            <!-- Botão Alterar -->
                            <ice:commandButton action="#{BuscarPJ.btnAlterar1_action}" binding="#{BuscarPJ.btnAlterar1}" id="btnAlterar1" immediate="true"
                                styleClass="btnAlterar" value="Alterar"/>
                            <!-- Botão Excluir -->
                            <ice:commandButton action="#{BuscarPJ.btn_excluir_action}" binding="#{BuscarPJ.btn_excluir}" id="btn_excluir"
                                styleClass="btnExcluir" value="Excluir"/>
                            <!-- Botão ConfirmarAlteração -->
                            <ice:commandButton action="#{BuscarPJ.btn_confirmaAlteracao_action}" binding="#{BuscarPJ.btn_confirmaAlteracao}"
                                id="btn_confirmaAlteracao" styleClass="btnAlterar" value="Confirmar Alteração"/>
                        </ice:panelLayout>
                        <!-- Painel Corpo -->
                        <ice:panelLayout id="painelCorpo" styleClass="pnCorpo">
                            <!-- Painel Corpo Esquerda -->
                            <ice:panelLayout id="painelCorpoEsquerda" styleClass="pnCorpoEsquerda">
                                <!-- Tabela ResultadoBusca -->
                                <center>
                                    <ice:dataTable binding="#{BuscarPJ.tabelaResultadoBusca}" id="tabelaResultadoBusca" rows="10"
                                        value="#{BuscarPJ.dataTable1Model}" var="currentRow">
                                        <ice:column id="column1">
                                            <center>
                                                <ice:outputText id="outputText1" value="#{currentRow.codPessoa}"/>
                                            </center>
                                            <f:facet name="header">
                                                <ice:outputText id="outputText2" value="Cód."/>
                                            </f:facet>
                                        </ice:column>
                                        <ice:column id="column2" style="width:200px;">
                                            <h:commandLink action="#{BuscarPJ.linkAction1_action}" id="linkAction1" value="#{currentRow.nome}"/>
                                            <f:facet name="header">
                                                <ice:outputText id="outputText4" value="Nome"/>
                                            </f:facet>
                                        </ice:column>
                                        <ice:column id="column3" style="width:200px;">
                                            <ice:outputText id="outputText5" value="#{currentRow.razaoSocial}"/>
                                            <f:facet name="header">
                                                <ice:outputText id="outputText6" value="Razão Social"/>
                                            </f:facet>
                                        </ice:column>
                                        <f:facet name="footer">
                                            <ice:panelGroup id="panelGroup1" style="display: block; text-align: center" styleClass="list-paging-footer">
                                                <ice:commandButton action="#{BuscarPJ.tabelaResultadoBusca_firstPageAction}"
                                                    binding="#{BuscarPJ.tabelaResultadoBuscaFooterFirstButton}" id="tabelaResultadoBuscaFooterFirstButton"
                                                    value="|&lt;"/>
                                                <ice:commandButton action="#{BuscarPJ.tabelaResultadoBusca_previousPageAction}"
                                                    binding="#{BuscarPJ.tabelaResultadoBuscaFooterPreviousButton}" id="tabelaResultadoBuscaFooterPreviousButton"
                                                    value="&lt;-"/>
                                                <ice:commandButton action="#{BuscarPJ.tabelaResultadoBusca_nextPageAction}"
                                                    binding="#{BuscarPJ.tabelaResultadoBuscaFooterNextButton}" id="tabelaResultadoBuscaFooterNextButton"
                                                    value="-&gt;"/>
                                                <ice:commandButton action="#{BuscarPJ.tabelaResultadoBusca_lastPageAction}"
                                                    binding="#{BuscarPJ.tabelaResultadoBuscaFooterLastButton}" id="tabelaResultadoBuscaFooterLastButton"
                                                    value="&gt;|"/>
                                            </ice:panelGroup>
                                        </f:facet>
                                    </ice:dataTable>
                                </center>
                            </ice:panelLayout>
                            <!-- Painel Corpo Direita -->
                            <ice:panelLayout id="painelCorpoDireita" layout="flow" styleClass="pnCorpoDireita">
                                <!-- Painel TabSet - Buscar PessoaJuridica -->
                                <ice:panelTabSet binding="#{BuscarPJ.painelBuscarPessoaJuridica}" id="painelBuscarPessoaJuridica" styleClass="pnTabSet" tabPlacement="Top">
                                    <!-- Aba 01 -->
                                    <ice:panelTab id="aba01" label="Pessoa Juridica">
                                        <ice:panelLayout id="painelConteudoAba01" layout="flow" styleClass="pnLayConteudo">
                                            <ice:panelLayout id="panelLayoutA1" layout="flow" styleClass="pnLayForm1 pBusca">
                                                <!--Código  -->
                                                <ice:outputLabel id="tx_codigo" styleClass="rotulo" value="Cód."/>
                                                <ice:inputText binding="#{BuscarPJ.campoCodCliente}" id="campoCodCliente" partialSubmit="true" readonly="true"
                                                    styleClass="entradaTxt" title="Código da Empresa."/>
                                                <!--Nome Completo -->
                                                <ice:outputLabel id="tx_nomeCompleto" styleClass="rotulo" value="Nome Completo(*): "/>
                                                <ice:inputText binding="#{BuscarPJ.campoNomeCompleto}" id="campoNomeCompleto"
                                                    onkeypress="style.backgroundColor='white';" partialSubmit="true" styleClass="entradaTxt" title="Insira o nome da Empresa."/>
                                                <!--Data Cadastro -->
                                                <ice:outputLabel id="tx_dataCadastro" styleClass="rotulo" value="Data do Cadastro: "/>
                                                <ice:selectInputDate binding="#{BuscarPJ.dataCadastro}" id="dataCadastro" popupDateFormat="dd/MM/yyyy"
                                                    renderAsPopup="true" renderMonthAsDropdown="true" renderYearAsDropdown="true" styleClass="entradaTxt"
                                                    value="#{BuscarPJ.selectInputDate1Bean.date1}" visible="true"/>
                                                <!--Razão Social -->
                                                <ice:outputLabel id="tx_razaoSocial" styleClass="rotulo" value="Razao Social(*): "/>
                                                <ice:inputText binding="#{BuscarPJ.campoRazaoSocial}" id="campoRazaoSocial"
                                                    onkeypress="style.backgroundColor='white';" partialSubmit="true" styleClass="entradaTxt" title="Insira a Razão Social da Empresa."/>
                                                <!--CNPJ -->
                                                <ice:outputLabel id="tx_cnpj" styleClass="rotulo" value="CNPJ(*): "/>
                                                <ice:inputText binding="#{BuscarPJ.campoCnpj}" id="campoCnpj" maxlength="18" onkeypress="mascara(this,cnpj);"
                                                    partialSubmit="true" styleClass="entradaTxt" title="Insira o CNPJ da Empresa."/>
                                                <!--Inscrição Estadual -->
                                                <ice:outputLabel id="tx_inscricaoEstadual" styleClass="rotulo" value="Insc. Estadual(*):"/>
                                                <ice:inputText binding="#{BuscarPJ.campoIncricaoEstadual}" id="campoIncricaoEstadual"
                                                    onkeypress="style.backgroundColor='white';" partialSubmit="true" styleClass="entradaTxt" title="Insira a Inscrição Estadual da Empresa."/>
                                            </ice:panelLayout>
                                            <ice:panelLayout id="panelLayoutA2" layout="flow" styleClass="pnLayForm2 pBusca">
                                                <!--Pagina WEB -->
                                                <ice:outputLabel id="tx_paginaWeb" styleClass="rotulo" value="Página WEB: "/>
                                                <ice:inputText binding="#{BuscarPJ.campoPaginaWeb}" id="campoPaginaWeb" onkeypress="mascara(this,site);"
                                                    partialSubmit="true" styleClass="entradaTxt" title="Insira o site da Empresa, se houver."/>
                                                <!--E-Mail -->
                                                <ice:outputLabel id="tx_email" styleClass="rotulo" value="E-Mail: "/>
                                                <ice:inputText binding="#{BuscarPJ.campoEmail}" id="campoEmail" partialSubmit="true" styleClass="entradaTxt" title="Insira o e-mail da Empresa."/>
                                                <!-- Campo Telefone Comercial -->
                                                <ice:outputLabel id="txTelefoneComercial" styleClass="rotulo" value="Telefone Comercial"/>
                                                <ice:inputText binding="#{BuscarPJ.campoTelefoneComercial}" id="campoTelefoneComercial" maxlength="14"
                                                    onkeypress="mascara(this,telefone);" partialSubmit="true" styleClass="entradaTxt" title="Insira o Telefone Comercial da Empresa."/>
                                                <!-- Campo Telefone Fax -->
                                                <ice:outputLabel id="tx_telefoneFax" styleClass="rotulo" value="Telefone Fax"/>
                                                <ice:inputText binding="#{BuscarPJ.campoFax}" id="campoFax" maxlength="14" onkeypress="mascara(this,telefone);"
                                                    partialSubmit="true" styleClass="entradaTxt" title="Insira o Fax da Empresa."/>
                                            </ice:panelLayout>
                                            <!--Próximo Passo -->
                                            <ice:commandLink action="#{BuscarPJ.link_proximoPassoAba01_action}" id="link_proximoPassoAba01" styleClass="proximoBtn"/>
                                            <!--Link Cancelar -->
                                            <ice:commandLink action="#{BuscarPJ.tx_opCancelarAba01_action}" id="tx_opCancelarAba01" styleClass="cancelarBtn minix"/>
                                        </ice:panelLayout>
                                    </ice:panelTab>
                                    <!-- Aba 02 -->
                                    <ice:panelTab id="aba02" label="Endereco">
                                        <ice:panelLayout id="conteudoAba02" layout="flow" styleClass="pnLayConteudo">
                                            <!--Tipo Endereço -->
                                            <!--Rua -->
                                            <ice:outputLabel id="tx_rua" style="color: rgb(51, 51, 51); left: 24px; top: 72px; position: absolute" value="Rua(*): "/>
                                            <ice:inputText binding="#{BuscarPJ.campoRua}" id="campoRua" onkeypress="style.backgroundColor='white';"
                                                partialSubmit="true" style="left: 22px; top: 94px; position: absolute; width: 288px" title="Insira o Endereço da Empresa:"/>
                                            <!--Numero -->
                                            <ice:outputLabel id="tx_numero" style="color: rgb(51, 51, 51); left: 336px; top: 72px; position: absolute" value="Número(*): "/>
                                            <ice:inputText binding="#{BuscarPJ.campoNumero}" id="campoNumero" onkeypress="mascara(this,numeroEndereco); style.backgroundColor='white';"
                                                partialSubmit="true" style="left: 334px; top: 94px; position: absolute; width: 48px" title="Insira o Número do Endereço."/>
                                            <!--Complemento -->
                                            <ice:outputLabel id="tx_complemento" style="color: rgb(51, 51, 51); left: 24px; top: 124px; position: absolute" value="Complemento:"/>
                                            <ice:inputText binding="#{BuscarPJ.campoComplemento}" id="campoComplemento" partialSubmit="true"
                                                style="left: 22px; top: 146px; position: absolute; width: 95px" title="Insira o Complemento do Endereço."/>
                                            <!--Bairro -->
                                            <ice:outputLabel id="tx_bairro" style="color: rgb(51, 51, 51); left: 168px; top: 124px; position: absolute" value="Bairro(*): "/>
                                            <ice:inputText binding="#{BuscarPJ.campoBairro}" id="campoBairro" onkeypress="style.backgroundColor='white';"
                                                partialSubmit="true" style="left: 166px; top: 146px; position: absolute; width: 144px" title="Insira o Bairro do Endereço."/>
                                            <!--CEP -->
                                            <ice:outputLabel id="tx_cep" style="color: rgb(51, 51, 51); left: 336px; top: 124px; position: absolute" value="CEP(*): "/>
                                            <ice:inputText binding="#{BuscarPJ.campoCep}" id="campoCep" maxlength="9" onkeypress="mascara(this,cep);"
                                                partialSubmit="true" style="left: 334px; top: 146px; position: absolute; width: 72px" title="Insira o CEP do Endereço."/>
                                            <!--Estado -->
                                            <ice:outputLabel id="tx_uf" style="color: rgb(51, 51, 51); left: 24px; top: 176px; position: absolute" value="UF: "/>
                                            <ice:selectOneMenu binding="#{BuscarPJ.opcaoUf}" id="opcaoUf" partialSubmit="true"
                                                style="left: 26px; top: 194px; position: absolute" value="#{BuscarPJ.botaoSelecionadoOpcaoUf.selectedObject}" valueChangeListener="#{BuscarPJ.opcaoUf_processValueChange}">
                                                <f:selectItems id="selectOneMenu1selectItems1" value="#{BuscarPJ.botaoOpcaoUf}"/>
                                            </ice:selectOneMenu>
                                            <!--Cidade -->
                                            <ice:outputLabel id="tx_cidade" style="color: rgb(51, 51, 51); left: 168px; top: 176px; position: absolute" value="Cidade: "/>
                                            <ice:selectOneMenu binding="#{BuscarPJ.campoCidade}" id="campoCidade" partialSubmit="true"
                                                style="left: 168px; top: 198px; position: absolute" title="Selecione a Cidade." value="#{BuscarPJ.botaoSelecionadoCampoCidade.selectedObject}">
                                                <f:selectItems id="selectOneMenu1selectItems2" value="#{BuscarPJ.botaoCampoCidade}"/>
                                            </ice:selectOneMenu>
                                            <!-- Passo Anterior -->
                                            <ice:commandLink action="#{BuscarPJ.link_AbaAnterior1_action}" id="link_AbaAnterior1" styleClass="anteriorBtn"/>
                                            <!--Link Cancelar -->
                                            <ice:commandLink action="#{BuscarPJ.tx_opCancelarAba02_action}" id="tx_opCancelarAba02" styleClass="cancelarBtn minix"/>
                                        </ice:panelLayout>
                                    </ice:panelTab>
                                </ice:panelTabSet>
                            </ice:panelLayout>
                            <!-- Fim Painel Corpo Direita -->
                            <!-- Painel Rodapé -->
                            <ice:panelLayout id="painelRodape" layout="flow" styleClass="boxRodape">
                                <ice:panelLayout id="painelRodapeEsq" styleClass="esqRodape"/>
                                <ice:panelLayout id="logoRodape" styleClass="logoRodape"/>
                                <ice:panelLayout id="painelRodapeDir" styleClass="dirRodape"/>
                            </ice:panelLayout>
                            <!-- Fim Painel Rodapé -->
                        </ice:panelLayout>
                        <!-- Fim - Painel Corpo -->
                        <!-- Painel PopUp -->
                        <ice:panelPopup autoCentre="true" binding="#{BuscarPJ.panelPopUpAviso}" draggable="true" id="panelPopUpAviso" modal="true"
                            rendered="#{BuscarPJ.panelPopup1Bean.showDraggablePanel}" styleClass="jpopup" visible="#{BuscarPJ.panelPopup1Bean.showModalPanel}">
                            <f:facet name="header">
                                <ice:panelGrid id="panelGrid1" style="display:block;width:180px;height:20px;">
                                    <ice:outputText id="outputText3" value="Atenção"/>
                                </ice:panelGrid>
                            </f:facet>
                            <f:facet name="body">
                                <ice:panelGroup id="panelPopBody" styleClass="jpopBody">
                                    <ice:panelLayout id="panelPopTxt" styleClass="jpopTxt">
                                        <ice:outputText binding="#{BuscarPJ.textoPopUp1}" id="textoPopUp1" value="body text"/>
                                    </ice:panelLayout>
                                    <ice:panelLayout id="panelPopBtn" styleClass="jpopBtn">
                                        <ice:commandButton action="#{BuscarPJ.btnPopUp1_action}" binding="#{BuscarPJ.btnPopUp1}" id="btnPopUp1" value="submit"/>
                                        <ice:commandButton action="#{BuscarPJ.btnPopUp2_action}" binding="#{BuscarPJ.btnPopUp2}" id="btnPopUp2" value="submit"/>
                                    </ice:panelLayout>
                                </ice:panelGroup>
                            </f:facet>
                        </ice:panelPopup>
                    </ice:panelGroup>
                    <!-- Fim - Painel Principal -->
                </ice:form>
            </ice:outputBody>
        </ice:outputHtml>
    </f:view>
</jsp:root>
